Skip to content

fix: Reduce unnecessary IPC calls causing UI unresponsiveness#1542

Merged
charlesvien merged 5 commits intomainfrom
04-07-app_becomes_unresponsive
Apr 8, 2026
Merged

fix: Reduce unnecessary IPC calls causing UI unresponsiveness#1542
charlesvien merged 5 commits intomainfrom
04-07-app_becomes_unresponsive

Conversation

@charlesvien
Copy link
Copy Markdown
Member

@charlesvien charlesvien commented Apr 8, 2026

Problem

Excessive IPC calls during boot and redundant re-renders cause the app to become unresponsive.

Closes #1348

Changes

  1. Add opt-in IPC timing middleware to log call durations during first 15s of boot
  2. Fix markAsViewed re-firing on every render by stabilizing the dependency to a string key instead of a new array reference
  3. Dedupe recordActivity mutation calls per task run using a module-level Set

How did you test this?

Manually

@charlesvien charlesvien changed the title Dedupe recordActivity calls on session connect fix: Dedupe recordActivity calls on session connect Apr 8, 2026
@charlesvien charlesvien changed the title fix: Dedupe recordActivity calls on session connect fix: Reduce unnecessary IPC calls causing UI unresponsiveness Apr 8, 2026
@charlesvien charlesvien marked this pull request as ready for review April 8, 2026 02:04
@charlesvien charlesvien force-pushed the 04-07-app_becomes_unresponsive branch from 508e957 to 5d05e7f Compare April 8, 2026 04:17
@charlesvien charlesvien force-pushed the 04-07-app_becomes_unresponsive branch from 5d05e7f to 1caa64e Compare April 8, 2026 22:55
@charlesvien charlesvien force-pushed the 04-07-folder_logic_cleanup branch from 1f79a26 to 9cca63e Compare April 8, 2026 22:56
Copy link
Copy Markdown
Member Author

charlesvien commented Apr 8, 2026

Merge activity

  • Apr 8, 11:25 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Apr 8, 11:42 PM UTC: Graphite rebased this pull request as part of a merge.
  • Apr 8, 11:46 PM UTC: @charlesvien merged this pull request with Graphite.

@charlesvien charlesvien changed the base branch from 04-07-folder_logic_cleanup to graphite-base/1542 April 8, 2026 23:34
@charlesvien charlesvien changed the base branch from graphite-base/1542 to main April 8, 2026 23:40
@charlesvien charlesvien force-pushed the 04-07-app_becomes_unresponsive branch from 1caa64e to d4708b9 Compare April 8, 2026 23:41
@charlesvien charlesvien merged commit 26f0373 into main Apr 8, 2026
16 checks passed
@charlesvien charlesvien deleted the 04-07-app_becomes_unresponsive branch April 8, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App becomes unresponsive when 3+ agents spawn concurrently, requires full restart

2 participants